/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.himilco.ocana.gui.serviceProvider;

import java.io.Serializable;
import com.himilco.ocana.workflow.core.bo.ServiceProviderBO;
import com.himilco.ocana.workflow.core.dao.entities.Ticket;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.ejb.EJB;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author oussema
 */
public class ServiceProviderModel implements Serializable {

    private boolean value2;
    private List<Ticket> ticketsDispatched;
    private Ticket selectedTicket = new Ticket();
    private Ticket[] TicketsSelected;

    public ServiceProviderModel() {
        ticketsDispatched = new ArrayList<Ticket>();
    }

    public boolean isValue2() {
        System.out.println("buttom checked status: " + value2);
        return value2;
    }

    public void setValue2(boolean value2) {
         System.out.println("buttom checked status: " + value2);
        this.value2 = value2;
    }

    public void addMessage() {
        String summary = value2 ? "Checked" : "Unchecked";
        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(summary));
    }

    public Ticket[] getTicketsSelected() {
        return TicketsSelected;
    }

    public void setTicketsSelected(Ticket[] TicketsSelected) {
        this.TicketsSelected = TicketsSelected;
    }

    public Ticket getSelectedTicket() {
        return selectedTicket;
    }

    public void setSelectedTicket(Ticket selectedTicket) {
        this.selectedTicket = selectedTicket;
    }

    public List<Ticket> getTicketsDispatched() {
        return ticketsDispatched;
    }

    public void setTicketsDispatched(List<Ticket> ticketsDispatched) {
        this.ticketsDispatched = ticketsDispatched;
    }
}
